function n = ndims(A)
% BVQXfile::ndims  - overloaded method

% Version:  v0.7b
% Build:    7083015
% Date:     Aug-30 2007, 3:34 PM CEST
% Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
% URL/Info: http://wiki.brainvoyager.com/BVQXtools

try
    n = ndims(struct(A));
catch
    rethrow(lasterror);
end
